package com.hfut.wxy.entity.mysql;

import com.hfut.wxy.common.parent.WxyId;
import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Getter
@Setter
@Table(name = "wxySchool")
@Entity
@DynamicInsert
@DynamicUpdate
public class WxySchool extends WxyId {

    @Column(columnDefinition = "varchar(16) comment '学校名称'")
    private String schoolName;

    @Column(columnDefinition = "varchar(64) comment '地址'")
    private String location;
}
